:root {
  --color-primary: #4caf50;
  --color-primary-dark: #2e7d32;
  --color-primary-light: #c8e6c9;
  --color-background: #f8fbf8;
  --color-card-header: #f1f8e9;
  --color-border: #e8f5e9;
  --color-text-title: #2e7d32;
  --color-text-subtitle: #689f38;
  --color-text-regular: #333333;
  --color-text-secondary: #757575;
  --radius-default: 8px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 10px 20px rgba(0, 120, 0, 0.1);
}

/* 页面基础样式 */
.agri-page-container {
  padding: 20px;
  background-color: var(--color-background);
  min-height: calc(100vh - 60px);
}

.agri-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: var(--color-card-header);
  padding: 15px;
  border-radius: var(--radius-default);
  box-shadow: 0 2px 6px rgba(0, 120, 0, 0.05);
}

.agri-page-title {
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  color: var(--color-primary-dark);
}

.agri-page-title .el-icon {
  margin-right: 8px;
  font-size: 24px;
  color: var(--color-primary);
}

.agri-page-actions {
  display: flex;
  gap: 10px;
}

/* 卡片通用样式 */
.agri-card {
  margin-bottom: 20px;
  border-radius: var(--radius-default);
  box-shadow: var(--shadow-card);
  border: none;
  background-color: #ffffff;
}

.agri-card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* 表格通用样式 */
.agri-table-wrapper :deep(.el-table) {
  border-radius: var(--radius-default);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.agri-table-wrapper :deep(.el-table th) {
  background-color: var(--color-card-header) !important;
  color: var(--color-primary-dark);
  font-weight: bold;
}

.agri-table-wrapper :deep(.el-table--striped .el-table__body tr.el-table__row--striped td) {
  background-color: var(--color-background);
}

.agri-table-wrapper :deep(.el-table__row:hover td) {
  background-color: var(--color-border) !important;
}

/* 对话框通用样式 */
.agri-dialog-wrapper :deep(.el-dialog) {
  border-radius: 12px;
  overflow: hidden;
}

.agri-dialog-wrapper :deep(.el-dialog__header) {
  background-color: var(--color-card-header);
  padding: 15px 20px;
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

.agri-dialog-wrapper :deep(.el-dialog__title) {
  color: var(--color-primary-dark);
  font-weight: bold;
}

.agri-dialog-wrapper :deep(.el-dialog__body) {
  padding: 20px;
}

.agri-dialog-wrapper :deep(.el-dialog__footer) {
  border-top: 1px solid var(--color-border);
  padding: 15px 20px;
}

/* 操作按钮组样式 */
.agri-operations {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

/* 标签页美化 */
.agri-tabs-wrapper :deep(.el-tabs__item) {
  color: var(--color-text-secondary);
}

.agri-tabs-wrapper :deep(.el-tabs__item.is-active) {
  color: var(--color-primary-dark);
}

.agri-tabs-wrapper :deep(.el-tabs__active-bar) {
  background-color: var(--color-primary);
}

/* 空数据样式 */
.agri-empty-data {
  padding: 40px 0;
  background-color: #f9f9f9;
  border-radius: var(--radius-default);
}

/* 适配移动设备 */
@media (max-width: 768px) {
  .agri-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .agri-page-actions {
    width: 100%;
  }

  .agri-page-actions .el-button {
    flex: 1;
  }
} 